package ma.ensao.evalmetrics.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import java.util.Date;

//Mapping de la table stat et le bean stat
@Entity
@Table(name = "stat")
public class Stat {
	private static final long serialVersionUID = -8767337896773261247L;

	private Long id;
	private double nbMPF;
	private double nbMHF;
	private double nbMSF;
	private double nbNPM;
	private int nbClasses;
	private int nbFiles;
	private int nbMethods;
	private int nbAtrributs;

	private java.util.Date date = new java.util.Date();
	private Long idProjet;

	@Id
	@GeneratedValue
	@Column(name = "id")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Date getDate() {
		return date;
	}

	@Column(name = "Date")
	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "idProjet")
	public Long getIdProjet() {
		return idProjet;
	}

	public void setIdProjet(Long idProjet) {
		this.idProjet = idProjet;
	}

	@Column(name = "nbMHF")
	public double getNbMHF() {
		return nbMHF;
	}

	public void setNbMHF(double nbMHF) {
		this.nbMHF = nbMHF;
	}

	@Column(name = "nbMSF")
	public double getNbMSF() {
		return nbMSF;
	}

	public void setNbMSF(double nbMSF) {
		this.nbMSF = nbMSF;
	}

	@Column(name = "nbNPM")
	public double getNbNPM() {
		return nbNPM;
	}

	public void setNbNPM(double nbNPM) {
		this.nbNPM = nbNPM;
	}

	@Column(name = "nbMPF")
	public double getNbMPF() {
		return nbMPF;
	}

	public void setNbMPF(double nbMPF) {
		this.nbMPF = nbMPF;
	}

	@Column(name = "nbClasses")
	public int getNbClasses() {
		return nbClasses;
	}

	public void setNbClasses(int nbClasses) {
		this.nbClasses = nbClasses;
	}

	@Column(name = "nbFiles")
	public int getNbFiles() {
		return nbFiles;
	}

	public void setNbFiles(int nbFiles) {
		this.nbFiles = nbFiles;
	}

	@Column(name = "nbAtrributs")
	public int getNbAtrributs() {
		return nbAtrributs;
	}

	public void setNbAtrributs(int nbAtrributs) {
		this.nbAtrributs = nbAtrributs;
	}

	@Column(name = "nbMethods")
	public int getNbMethods() {
		return nbMethods;
	}

	public void setNbMethods(int nbMethods) {
		this.nbMethods = nbMethods;
	}

}